<?php
class indexAction extends rareAction{
    public function execute(){
        $linksDao = new DaoLinks();
        list($links, $page) =$linksDao->getListPage("1 order by id desc",20);
		if(!Tool::_getCache('isAdmin')){
			Tool::_setCache('currentID',service_menu::getCurrent('1',service_type::LINKS));
		}
        $this->assign('links',$links);
		$this->assign('page',$page);
    }
}
?>
